﻿using System;
using System.Collections.Concurrent;
using System.Collections.Generic;
using System.Net.WebSockets;

/// <summary>
/// Constants 的摘要说明
/// </summary>
public static class Constants
{
	/// <summary>
	/// websocket信道
	/// </summary>
	public static List<WebSocket> WebSockets = new List<WebSocket>();

	/// <summary>
	/// 对WebSockets操作的调度锁
	/// </summary>
	public static SimpleAdvancedLock AdvancedLock = new SimpleAdvancedLock();

	/// <summary>
	/// 已经保存但未记录入数据库的文件
	/// </summary>
	public static ConcurrentDictionary<string, DateTime> Uploadings = new ConcurrentDictionary<string, DateTime>();
}